home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Tool Chest / Dev.CD Aug 98 TC.toast / Sample Code / Interapplication Communication / MenuScripter 4.0 / Sources / MSFile.h < prev    next >
Encoding:
Text File  |  1996-07-09  |  1.2 KB  |  52 lines  |  [TEXT/CWIE]

  1. // MSFile.h
  2. //
  3. // Original version by Jon Lansdell and Nigel Humphreys.
  4. // 4.0 and 3.1 updates by Greg Sutton.
  5. // ©Apple Computer Inc 1996, all rights reserved.
  6.  
  7. #ifndef __MSFILE__
  8. #define __MSFILE__
  9.  
  10. #include <Memory.h>
  11. #include <Quickdraw.h>
  12. #include <Traps.h>
  13. #include <Files.h>
  14. #include <Packages.h>
  15. #include <Editions.h>
  16. #include <AppleEvents.h>
  17. #include <Printing.h>
  18.  
  19. #include "MSGlobals.h"
  20. #include "MSUtils.h"
  21. #include "MSWindow.h"
  22.                  
  23. void    DoQuit( DescType saveOpt );
  24.  
  25. OSErr    DoClose( WindowPtr aWindow, Boolean canInteract, DescType dialogAnswer );
  26.  
  27. short    DoFileDialog( short theDlogID, WindowRef theWindow );
  28.  
  29. OSErr    GetFileNameToSaveAs( DPtr theDocument );
  30.  
  31. OSErr    DoSave( DPtr theDocument, FSSpec theFSSpec );
  32.  
  33. OSErr    GetFileContents( FSSpec theFSSpec, DPtr theDocument );
  34.  
  35. void    FileError( Str255 s, Str255 f );
  36.  
  37. OSErr    DoCreate( FSSpec theSpec );
  38.  
  39. OSErr    WriteFile( DPtr theDocument, short refNum, FSSpec theFSSpec );
  40. OSErr    ReadFile( DPtr theDocument, short  refNum, Str255 fn );
  41.  
  42. OSErr    SaveUsingTemp( DPtr theDocument );
  43.  
  44. OSErr    OpenOld( FSSpec aFSSpec );
  45.  
  46. OSErr    OpenUsingAlias( AliasHandle theAliasH );
  47.  
  48. OSErr    GetFile( FSSpec *theFSSpec );
  49.  
  50. short    DoSaveBeforeClosing( short theDlogID, WindowRef theWindow );
  51.  
  52. #endif